package com.blue.fish.tiny.lexer;

import java.util.Arrays;
import java.util.HashSet;

/**
 * @author QingFan
 * @version 1.0.0
 * @date 2023年01月09日 20:48
 */
public class Keywords {

	static String[] keywords = {
			"var",
			"int",
			"float",
			"bool",
			"void",
			"string",
			"if",
			"else",
			"for",
			"while",
			"break",
			"func",
			"return"
	};

	static HashSet<String> set = new HashSet<>(Arrays.asList(keywords));

	public static boolean isKeyword(String word) {
		return set.contains(word);
	}


}
